package com.example.school;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Grade {
    private Long id;
    private String name;
    private List<Student> students = new ArrayList<>();

    public void addStudent(Student student) {
        students.add(student);
    }
}
